# name : proc genmod with repeated
# key : genmod.repeated.
# contributor: Shuguang Sun
# --
proc genmod data = ${1:dtin}${2: descending};
class $0;
model ${3:response} = ${4:covariances} / ${5:$$(yas-choose-value '("d=bin link=logit" "" "d=normal link=id" "d=gamma link=power(-1)" "d=poi link=log"))} expected${6: type3 lrci itprint};
repeated subject = ${7:id} / type = ${8:$$(yas-choose-value '("cs" "un" "ar(1)" "vc"))} corrw covb modelse within = ${9:group/time};
lsmeans;
run;
